/* eslint-disable */
module.exports = function(api) { // eslint-disable-line
  api.cache(true);
  const plugins = [
    '@babel/plugin-proposal-function-bind',
    '@babel/plugin-proposal-export-default-from',
    '@babel/plugin-proposal-export-namespace-from',
    '@babel/plugin-syntax-dynamic-import',
    '@babel/plugin-syntax-import-meta',
    ['@babel/plugin-proposal-class-properties', { 'loose': false }],
    ['@babel/plugin-transform-runtime', {
      'helpers': false,
      'regenerator': false,
      'corejs': false,
    }],
  ]
  return {
    'presets': [['@babel/preset-env', {
      "targets": {
        node: 'current'
      }
    }], '@babel/preset-react'],
    'plugins': process.env.NODE_ENV === 'development' ? (plugins.unshift('react-hot-loader/babel') &&  plugins) : plugins
  }
}
